package com.lijie.ljblog.service;

import com.github.pagehelper.PageInfo;
import com.lijie.ljblog.model.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lijie.ljblog.util.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijie
 * @since 2021-08-28
 */
public interface BlogService extends IService<Blog> {
   public PageInfo<Blog> selBlogPage(Integer page,Blog blog);
   public PageInfo<Blog> selNotice(Integer page,Blog blog);
   public Result<Blog> getByIdAndAddReadNums(Integer blogId);
   public Result<Blog> getById(Integer id);
   public Integer getBlogVisibleNums();

   /**
    * 查询热门博客
    * @return
    */
    Result<List<Blog>> hotBlog();

}
